package com.example.template.common.base;

/**
 * @className: BaseService
 * @description: 基础业务接口
 * @author: Kuangkeli
 * @date: 2024/01/18 20:14
 **/
public interface BaseService<T> {
    boolean deleteByPrimaryKey(Object id);

    boolean insert(T record);

    boolean insertSelective(T record);

    T selectByPrimaryKey(Object id);

    boolean updateByPrimaryKeySelective(T record);

    boolean updateByPrimaryKey(T record);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    boolean batchDelete(String ids);

}
